<div class="modal fade" id="selectCategory" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div id="dialog" class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"  data-dismiss="modal" aria-hidden="true">&times;</button>
                <!-- <h4 class="modal-title"></h4> -->
            </div>
            <div class="modal-body">
                <?php $this->widget('zii.widgets.grid.CGridView', array(
                    'id'=>'category-grid',
                    'dataProvider'=>$model->search(),
                    'filter'=>$model,
                    'enableSorting'=>true,
                    'pager' => array('cssFile' => Yii::app()->theme->baseUrl . '/assets/gridview/pager.css'),
                    'baseScriptUrl'=>Yii::app()->theme->baseUrl.'/assets/gridview',
                    'cssFile'=> Yii::app()->theme->baseUrl . '/assets/gridview/styles.css',
                    'columns'=>array(
                        'id',
                        array(
                            'name' => 'name',
                            'type' => 'raw',
                            'value'=>'CHtml::link($data->name,"#",array("id"=>$data->id,"style"=>"text-align:center"))',
                            'htmlOptions' => array('style'=>'padding:10px'),
                        ),
                        array(
                            'name' => 'status',
                            'type' => 'raw',
                           // 'value'=>'$data->getStatusIcon()',
                           // 'filter'=>CHtml::activeDropDownList($model,'status',$model->getStatusOptions(),array('empty'=>' - '.Yii::t('MenuModule.base','Selects the state'))),
                            'htmlOptions'=>array('style'=>'width:210px')
                        ),
                        array(
                            'name' => 'access',
                            'type' => 'raw',
                           // 'value'=>'$data->getAccessStatus()',
                            //'filter'=>CHtml::activeDropDownList($model,'access',$model->getAccessStatus()),
                            'htmlOptions'=>array('style'=>'width:210px')
                        ),
                        'tags',
                        array(
                            'name' => 'create_time',
                            'type' => 'raw',
                         //   'value'=>'$data->getCreateDateTimeFormat()',
                            'filter'=>false,
                            'htmlOptions' => array('style'=>'width:200px'),
                        ),

                    ),
                )); ?>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><i class='glyphicon glyphicon-remove inner'></i>Close</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->